package main

import "fmt"

func main(){

	cityMap := map[string]string{"四川":"成都","北京":"北京","重庆":"重庆"}

	delete(cityMap,"北京")

	for k,v := range cityMap{
		fmt.Println(k + "的省会城市是" + v)
	}



	/*var testMap map[string]string
	testMap =make(map[string]string)
	testMap ["name"] = "minbo"
	testMap ["age"] = "22"
	testMap ["sex"] = "nan"

	for _,v := range testMap{
		fmt.Println(v)
	}*/



	/*var arr1 [5]int
	var arr2  = [4]int{1,2,3}
	var arr3  = [...]int{1}
	var grid  [4][5]int
	fmt.Println(arr1,arr2,arr3,grid)*/

	/*for i:=0; i<=len(arr2);i++{
		fmt.Println(arr2[i])
	}*/
	/*for _ ,v :=range arr2{
		fmt.Println(v)
	}*/

	//arr1 := [...]int{0,1,2,3,4,5,6,7,8}
	//s := arr1[2:6]
	//fmt.Println(arr1,s)

	/*arr2 := [...]int{1,3,4,6}
	//sum := 0
	for k, num := range arr2 {
		if k%2==0{
			fmt.Println("k --num:", k,num)
		}

	}*/




}
